package com.aim.util.extractors;

import java.io.File;

/**
 * User: Avraham Shvartzon
 * Date: 6/5/14
 */
public abstract class ValueExtractor<T,V> {

    public static final File tempClassesFolder = new File("data\\tempClasses");
    public final String name;

    public ValueExtractor(){
        this("");
    }

    protected ValueExtractor(String name) {
        this.name = name;
    }

    public abstract V getValue(T t);


    public static <T,V> ValueExtractor<T,V> createExtractor(Class<T> tClass, Class<V> vClass, String methodName){
        String s = "";

        return null;
    }

    public String getName() {
        return name;
    }

    public static void main(String[] args) {
        assert tempClassesFolder.isDirectory();
    }
}
